// 登录请求参数
export interface loginForm {
    username: string;
    password: string;
}

// 登录接口返回数据
interface dataType {
    token?: string,
    message?: string,
}
export interface loginResponseData {
    code: number,
    data: dataType
}

// 用户信息返回相关
interface userInfo {
    userId: number,
    username: string,
    avatar: string,
    password: string,
    desc: string,
    role: string[],
    buttons: string[],
    routes: string[],
    token: string

}

interface userType {
    checkUser: userInfo
}

export interface userResponseData {
    code: number,
    data: userType
}
